package com.jiaai.cloud.live.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 直播间
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title TLiveBroadcast.java
 * @since 2017/8/1
 */
@TableName("t_live_broadcast")
public class TLiveBroadcast extends Model<TLiveBroadcast> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
	private Integer broadcastId;
    /**
     * 当前的app标识
     */
	private String app;
    /**
     * 在线人数
     */
	private Integer online;
    /**
     * 点赞人数
     */
	private Integer like;
    /**
     * 房间费用
     */
	private Integer pay;

    /**
     * 当前观看密码
     */
	private String password;
    /**
     * 直播间状态 0已结束  1直播中
     */
	private Integer status;
    /**
     * 主播Id
     */
	private String anchorId;
    /**
     * 开始时间
     */
	@JSONField(format = "YYYY-MM-dd ")
	private Date startTime;
	/**
	 * 人气
	 */
	private  Integer popularity;
	/**
	 * 封面
	 */

	private  String coverPhoto;
    /**
     * 结束时间
     */
	@JSONField(format = "YYYY-MM-dd ")
	private Date endTime;


	public Integer getBroadcastId() {
		return broadcastId;
	}

	public void setBroadcastId(Integer broadcastId) {
		this.broadcastId = broadcastId;
	}

	public String getApp() {
		return app;
	}

	public void setApp(String app) {
		this.app = app;
	}

	public Integer getOnline() {
		return online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}

	public Integer getLike() {
		return like;
	}

	public void setLike(Integer like) {
		this.like = like;
	}

	public Integer getPay() {
		return pay;
	}

	public void setPay(Integer pay) {
		this.pay = pay;
	}



	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getAnchorId() {
		return anchorId;
	}

	public void setAnchorId(String anchorId) {
		this.anchorId = anchorId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getPopularity() {
		return popularity;
	}

	public void setPopularity(Integer popularity) {
		this.popularity = popularity;
	}

	public String getCoverPhoto() {
		return coverPhoto;
	}

	public void setCoverPhoto(String coverPhoto) {
		this.coverPhoto = coverPhoto;
	}

	@Override
	protected Serializable pkVal() {
		return this.broadcastId;
	}

}
